package com.hospital.hospitalworkservice.web;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hospital.common.vo.ResultEntity;
import com.hospital.hospitalworkservice.entity.Score;
import com.hospital.hospitalworkservice.service.ScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/score")
public class ScoreController {

    @Autowired
    ScoreService scoreService;

    @RequestMapping("/list")
    public ResultEntity list(Page page, Score vo){
        IPage<Score> list = scoreService.selectPageVo(page, vo);
        return ResultEntity.ok("200","列表访问成功",list);
    }
}
